<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:include href="core\form.xsl"/>
	<xsl:include href="core\level0.xsl"/>
	
<xsl:template match="page">
	<xsl:call-template name="page_content"/>
</xsl:template>

<xsl:template name="page_content">
					<xsl:call-template name="title_page">
										<xsl:with-param name="titleText">
											Contact Us
										</xsl:with-param>
									</xsl:call-template>
		<xsl:if test="string-length(message)>0">
			<center><xsl:apply-templates select="message"/></center><br/>
		</xsl:if>
		<xsl:apply-templates select="form[@name='contact_us']"/>
</xsl:template>

<xsl:template match="message">
	<b><font color="#ff0000"><xsl:value-of select="." disable-output-escaping="yes"/></font></b>
</xsl:template>

<xsl:template match="form[@name='contact_us']">
	<form action="main.asp">
		<input type="Hidden" name="-contact_us.asp-"/>
		<xsl:copy-of select="@*"/>
		<xsl:apply-templates select="control/input[@type='hidden']"/>
		<center>
			<table cellpadding="1" cellspacing="3">
							<tr>
								<td colspan="3" class="imagetitle">
									<xsl:choose>
									<xsl:when test="string-length(/page/contact_us_info)=0">
									Please fill out the information below. All items marked "<font color="red">*</font>" are required entries.
									</xsl:when>
									<xsl:otherwise>
									<xsl:value-of select="/page/contact_us_info" disable-output-escaping="yes"/>
									</xsl:otherwise>
									</xsl:choose>
								</td>
							</tr>
 				<tr>
					<td valign="bottom"><strong>First Name</strong><font color="red">*</font><br/><xsl:apply-templates select="control[@name='f_name']/input"/></td>
					<td valign="bottom"><xsl:apply-templates select="control[@name='m_name']"/></td>
					<td valign="bottom"><strong>Last Name</strong><font color="red">*</font><br/>
<xsl:apply-templates select="control[@name='l_name']/input"/></td>
				</tr>
				<tr><td colspan="3"><strong>E-mail</strong><font color="red">*</font><br/><xsl:apply-templates select="control[@name='email']/input"/></td></tr>
				<tr>
					<td colspan="3">
						<table cellpadding="0" cellspacing="0">
							<tr><td><xsl:apply-templates select="control[@name='text']"/></td></tr>
						</table>
					</td>
				</tr>
				<tr>
					<td align="center" colspan="3">
						<input type="image" src="{$img_path_templates}/{$header_bg_color}/buttons/contact_us.gif" value="Contact" name="Contact" border="0"/>
					</td>
				</tr>
			</table>
		</center>
	</form>
</xsl:template>

</xsl:stylesheet>
